<extend name="public@base"/><block name="seo_head"><title>{$category.seo_title}-{$site_info.site_name}</title><meta name="keywords" content="{$category.seo_keywords|default=''}"/><meta name="description" content="{$category.seo_description|default=''}"/></block><block name="main"><div class="container"><div class="row"><php>// 查询条件，发布时间>=0
$where = function($query){
    $query->where('post.published_time','egt','0');
};</php><portal:articles item="vo" where="$where" limit="20" order="post.published_time DESC" page="10" relation="categories" pageVarName="" categoryIds="$category.id"><div class="col-12 pb-3"><div class="card shadow-sm"><notempty name="$vo.thumbnail"><img src="{$vo.thumbnail|cmf_get_image_url}" alt="{$vo.post_title}"/></notempty><div class="card-body"><h5 class="card-title"><a class="text-dark card-link" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">{$vo.post_title}</a></h5><p class="card-text">{$vo.post_excerpt}</p><div class="card-footer border-0 bg-transparent small p-0"><div class="row"><div class="col-auto"><span>阅读量：</span><span>{$vo.post_hits}</span></div><div class="col-auto"><span>发布时间：</span><span>{:date('Y-m-d',$vo.published_time)}</span></div></div></div></div></div></div></portal:articles></div></div></block>